home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _12741025E6A0417084E598AD2A6482E7 < prev    next >
Encoding:
Text File  |  2000-03-28  |  1.3 KB  |  59 lines

  1. #include "../common/header.ds"
  2. output "p:/base/ds/tsr1"
  3.  
  4.  
  5.  
  6. // this script is the ladies room hostage scene
  7.  
  8. local entity lbadguy1 // the guy hitting the hostage
  9. local entity lhostage // the second script that will run if the guy gets hit
  10. local entity host_count // the hostage counter for how many hostage events the player has seen
  11.  
  12.  
  13. local int sig1
  14. local int sig2
  15.  
  16. lbadguy1 = find entity with targetname "lbadguy1"
  17. lhostage = find entity with targetname "lhostage"
  18. host_count = find entity with targetname "host_count"
  19.  
  20.  
  21. host_count.health += 1 // sets the hostage counter up by 1 
  22.  
  23. on lbadguy1.health < 100 goto wm_release
  24.  
  25. animate entity lbadguy1 performing action STD_MPISTOLWHIP_N_P_N  signaling sig1
  26.  
  27. if lbadguy1.health < 100
  28.  
  29.      goto wm_release
  30.  
  31.  
  32. endif
  33.  
  34. play sound "speech/tsr1/skn/bt9-3.adp" for entity lbadguy1 at volume 0.9
  35. wait for all clearing sig1
  36. // use entity lhostageb // fires off the second script if he got this far
  37.  
  38. if lhostage.health > 0
  39.  
  40. animate entity lhostage performing action  CCH_XONKNEES_N_N_N
  41. play sound "speech/tsr1/npc/eb9-6.adp" for entity lhostage at volume 0.9
  42. animate entity lhostage performing action  CCH_SONKNEES_2FRNT_N_N
  43.  
  44. endif
  45.  
  46.  
  47.  
  48.  
  49.  
  50. label wm_release
  51.  
  52. reset ai for entity lbadguy1
  53. animate entity lbadguy1 performing action SCRIPT_RELEASE
  54.  
  55.  
  56.  
  57.  
  58.  
  59.